package com.taoism.core;

/**
 * 公用配置属性
 *
 * @author 李嘉
 * @version 1.0
 * @Description 公用配置属性
 * @date 2019/1/22 22:23
 */
public class CommonConfig {

    /**
     * 上下文存储键名称
     */
    public final static String USER_SESSION_KEY = "CurrentUser";

    /**
     * 上下文存储键名称
     */
    public final static String UNAME_SESSION_KEY = "CurrentUserName";

    /**
     * 当前token
     */
    public final static String TOKEN_SESSION_KEY = "accessToken";

    /**
     * 登录token名称
     */
    public final static String LOGIN_TOKEN_NAME = "LOGIN:TOKEN:";

    /**
     * 当前角色Cookie
     */
    public static final String SESSION_CURRENT_ROLES = "CurrentRoleCode";

    /**
     * 当前用户可以操作的菜单
     */
    public static final String SESSION_CURRENT_USER_MENUS = "CurrentUserMenus";


    /**
     * 短信token名称
     */
    public final static String SMS_TOKEN_NAME = "SMS:TOKEN:";

    /**
     * RSA加密模块
     */
    public final static String MODULES = "9651347980806444936312862210781339217561322344029818529057477188103307415187306782681348060392035793012703845141656638972889644318" + "101805025116535587080565354151565471255585732889759786970152474649853226145849671517113266429413221639439387632047891920199431575" +
            "4955866715581712439317581021119972966506619501807";

    /**
     * RSA加密密钥
     */
    public final static String PRIVATEKEY = "58619086375024877655360098921243146246399504997803824793495716842768535584712566410520936195417090" +
            "306372076316563718588631745775986395829687773883309236282645407402509176809497207495253797023043374900" +
            "692036554560092269047583920966637952463127203900823026786510375187817630313281163555020969453509016310125673";

    /**
     * RSA加密公钥
     */
    public final static String PUBLICKEY = "65537";

    /**
     * http状态200成功
     */
    public final static Integer HTTP_OK = 200;

    /**
     * 安全加密方法名称种类
     */
    public final static String SECRET_METHOD = "PKCS7Padding";

    /**
     * 密码加密Key
     */
    public final static long PWD_KEY = 0x496324baL;
}
